package cn.com.encryptor;

import java.io.OutputStream;
import java.net.Socket;

public class Test {
	public static void main(String[] args){
		String content = "<CommandList><StartRoutingHotel><XmlLoginId>2D1GK4FEF8M9RZQ9</XmlLoginId><LoginId>2D1GK4FEF8M9RZQ9</LoginId><Destination><Descriptor>48.2,16.366667</Descriptor><Type>coordinate</Type><Radius>10000</Radius></Destination><CheckinDates><DateOfSearch>01/10/2013-10:00</DateOfSearch></CheckinDates>"+
		"<CheckoutDates><DateOfSearch>02/10/2013-10:00</DateOfSearch></CheckoutDates><SupplierList><Supplier>radissonsas</Supplier>"+
		"</SupplierList><Timeout>1800</Timeout><AccommodationTypeList><AccommodationType>hotel</AccommodationType></AccommodationTypeList><RoomList><Room><Type>single</Type>"+
		"<TravellerList><Traveller><Age>21</Age></Traveller><Traveller><Age>5</Age></Traveller></TravellerList></Room></RoomList></StartRoutingHotel></CommandList>";
		int e = content.indexOf("<TravellerList>");
		int f = content.indexOf("</TravellerList>");
		content = content.substring(0,e+15) + "<Traveller><Age>21</Age></Traveller><Traveller><Age>5</Age></Traveller><Traveller><Age>21</Age></Traveller>" + content.substring(f,content.length());
		System.out.println(content);
		}
	
}
